import 'package:fish_redux/fish_redux.dart';

enum SubjectAction { onEdit, onSave, onPost, result }

class SubjectActionCreator {
  static Action onEdit() {
    return Action(SubjectAction.onEdit);
  }

  static Action onSave() {
    return Action(SubjectAction.onSave);
  }

  static Action onPost() {
    return Action(SubjectAction.onPost);
  }

  static Action result(var data) {
    return Action(SubjectAction.result, payload: data);
  }
}
